import request from '@/utils/request'

export function list(query) {
  return request({
    url: '/groovy/list',
    method: 'get',
    params: query
  })
}

export function remove(id) {
  return request({
    url: '/groovy/remove/'+id,
    method: 'delete',
  })
}

export function saveOrUpate(data) {
    return request({
      url: '/groovy/saveOrUpdate',
      method: 'post',
      data: data
    })
}

export function get(id) {
    return request({
      url: '/groovy/get/'+id,
      method: 'get'
    })
}

export function release(id) {
    return request({
      url: '/groovy/release/'+id,
      method: 'post'
    })
}

export function test() {
    return request({
      url: '/groovy/index',
      method: 'get'
    })
}


